Skip to content

Return forbidden for rejected switch origins#22

Merged
Pigbibi merged 1 commit into
mainfrom
codex/origin-error-status
Jun 9, 2026
Merged

Return forbidden for rejected switch origins#22
Pigbibi merged 1 commit into
mainfrom
codex/origin-error-status

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • return the status from typed Worker errors instead of always mapping rejected Origin checks to 500
  • make missing/cross-site Origin failures return 403
  • extend strategy switch Worker validation coverage for the 403 status

Validation

  • node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs
  • node --check --input-type=module < web/strategy-switch-console/worker.js
  • python3 scripts/runtime_settings.py validate
  • python3 -m unittest discover -s tests -v

@Pigbibi Pigbibi merged commit 477abf8 into main Jun 9, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/origin-error-status branch June 9, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant